tinyMCEPopup.requireLangPack();

var MuzoMediaDialog = {
    init: function (ed) {
        tinyMCEPopup.resizeToInnerSize();
    },

    insert: function (id) {
        var ed = tinyMCEPopup.editor, dom = ed.dom;
        var strHtml = "<img height=\"320\" align=\"\" width=\"240\" title=\"id:'" + id + "',width:'300',height:'250'\" class=\"mceItemFlash\" src=\"tiny_mce/plugins/media/img/trans.gif\" _moz_dirty=\"\">";
        tinyMCEPopup.execCommand('mceInsertContent', false, strHtml);

        tinyMCEPopup.close();
    }
};

tinyMCEPopup.onInit.add(MuzoMediaDialog.init, MuzoMediaDialog);
